import request from '@/utils/request'

// 查询应用列表
export function listContract(query) {
  return request({
    url: '/contract/getContract',
    method: 'get',
    params: query
  })
}


export function listContractPlan(query) {
  return request({
    url: '/contract/getContractPlan',
    method: 'get',
    params: query
  })
}
export function getContractDetail(query) {
  return request({
    url: '/contract/getContractDetail',
    method: 'get',
    params: query
  })
}
export function getContractByFactory(query) {
  return request({
    url: '/contract/getCountByFactory',
    method: 'get',
    params: query
  })
}
export function getContractByYear(query) {
  return request({
    url: '/contract/getCountByYear',
    method: 'get',
    params: query
  })
}
export function getContractByDept(query) {
  return request({
    url: '/contract/getCountByDept',
    method: 'get',
    params: query
  })
}
export function getContractByType(query) {
  return request({
    url: '/contract/getCountByType',
    method: 'get',
    params: query
  })
}
export function getCountByNode(query) {
  return request({
    url: '/contract/getCountByNode',
    method: 'get',
    params: query
  })
}

export function updateHt(query) {
  return request({
    url: '/contract/updateHt',
    method: 'post',
    params: query
  })
}
